import { BasicColumn, FormSchema } from '@apps/antd-admin/src/components/table';

export const columns: BasicColumn[] = [
  {
    title: '年份',
    dataIndex: 'startMonth',
    width: 100,
  },
  {
    title: '使用目标',
    dataIndex: 'goodsName',
    width: 100,
  },
  {
    title: '总数量',
    dataIndex: 'checkNum',
    width: 100,
  },
  {
    title: '总金额',
    dataIndex: 'totalAmount',
    width: 100,
  },
];

export const searchFormSchema: FormSchema[] = [
  {
    field: 'startMonth',
    label: '年份',
    component: 'DatePicker',
    colProps: { span: 5 },
    componentProps: {
      valueFormat: 'YYYY',
      format: 'YYYY',
      picker: 'year',
    },
  },
];
